/* 自定义样式 */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--secondary-color);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #e55a2b;
    border-color: #e55a2b;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-online {
    background-color: var(--success-color);
    animation: pulse 2s infinite;
}

.status-offline {
    background-color: var(--danger-color);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.log-entry {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.875rem;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-success {
    color: var(--success-color);
}

.log-error {
    color: var(--danger-color);
}

.log-warning {
    color: var(--warning-color);
}

.log-info {
    color: var(--info-color);
}

.show-card {
    transition: transform 0.2s;
}

.show-card:hover {
    transform: translateY(-2px);
}

.price-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.session-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-right: 4px;
    margin-bottom: 4px;
    display: inline-block;
}

.monitor-stats {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
}

.monitor-stats h3 {
    margin: 0;
    font-size: 2rem;
}

.monitor-stats p {
    margin: 5px 0 0 0;
    opacity: 0.8;
}

.alert-custom {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
}

.alert-success-custom {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger-custom {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-warning-custom {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.btn-group-custom .btn {
    border-radius: 0;
}

.btn-group-custom .btn:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.btn-group-custom .btn:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 107, 53, 0.05);
}

.progress-custom {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar-custom {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.badge-custom {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.footer-custom {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    padding: 20px 0;
    margin-top: auto;
}

@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
    
    .monitor-stats {
        margin-bottom: 15px;
    }
    
    .btn {
        margin-bottom: 5px;
    }
}